Optimal. Leaf size=224 \[ \frac{1}{96} \sqrt{\frac{1}{6} \left (11567+12897 \sqrt{3}\right )} \log \left (x^2-\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )-\frac{1}{96} \sqrt{\frac{1}{6} \left (11567+12897 \sqrt{3}\right )} \log \left (x^2+\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )+\frac{25 x \left (1-x^2\right )}{24 \left (x^4+2 x^2+3\right )}-\frac{1}{48} \sqrt{\frac{1}{6} \left (12897 \sqrt{3}-11567\right )} \tan ^{-1}\left (\frac{\sqrt{2 \left (\sqrt{3}-1\right )}-2 x}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right )+\frac{1}{48} \sqrt{\frac{1}{6} \left (12897 \sqrt{3}-11567\right )} \tan ^{-1}\left (\frac{2 x+\sqrt{2 \left (\sqrt{3}-1\right )}}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right ) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.617768, antiderivative size = 224, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 6, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214 \[ \frac{1}{96} \sqrt{\frac{1}{6} \left (11567+12897 \sqrt{3}\right )} \log \left (x^2-\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )-\frac{1}{96} \sqrt{\frac{1}{6} \left (11567+12897 \sqrt{3}\right )} \log \left (x^2+\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )+\frac{25 x \left (1-x^2\right )}{24 \left (x^4+2 x^2+3\right )}-\frac{1}{48} \sqrt{\frac{1}{6} \left (12897 \sqrt{3}-11567\right )} \tan ^{-1}\left (\frac{\sqrt{2 \left (\sqrt{3}-1\right )}-2 x}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right )+\frac{1}{48} \sqrt{\frac{1}{6} \left (12897 \sqrt{3}-11567\right )} \tan ^{-1}\left (\frac{2 x+\sqrt{2 \left (\sqrt{3}-1\right )}}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right ) \]
Antiderivative was successfully verified.
[In] Int[(4 + x^2 + 3*x^4 + 5*x^6)/(3 + 2*x^2 + x^4)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 27.5498, size = 328, normalized size = 1.46 \[ \frac{x \left (- 400 x^{2} + 400\right )}{384 \left (x^{4} + 2 x^{2} + 3\right )} - \frac{\sqrt{6} \left (- 760 \sqrt{3} + 56\right ) \log{\left (x^{2} - \sqrt{2} x \sqrt{-1 + \sqrt{3}} + \sqrt{3} \right )}}{4608 \sqrt{-1 + \sqrt{3}}} + \frac{\sqrt{6} \left (- 760 \sqrt{3} + 56\right ) \log{\left (x^{2} + \sqrt{2} x \sqrt{-1 + \sqrt{3}} + \sqrt{3} \right )}}{4608 \sqrt{-1 + \sqrt{3}}} + \frac{\sqrt{3} \left (112 \sqrt{2} \sqrt{-1 + \sqrt{3}} - \frac{\sqrt{2} \sqrt{-1 + \sqrt{3}} \left (- 1520 \sqrt{3} + 112\right )}{2}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \left (x - \frac{\sqrt{-2 + 2 \sqrt{3}}}{2}\right )}{\sqrt{1 + \sqrt{3}}} \right )}}{2304 \sqrt{-1 + \sqrt{3}} \sqrt{1 + \sqrt{3}}} + \frac{\sqrt{3} \left (112 \sqrt{2} \sqrt{-1 + \sqrt{3}} - \frac{\sqrt{2} \sqrt{-1 + \sqrt{3}} \left (- 1520 \sqrt{3} + 112\right )}{2}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \left (x + \frac{\sqrt{-2 + 2 \sqrt{3}}}{2}\right )}{\sqrt{1 + \sqrt{3}}} \right )}}{2304 \sqrt{-1 + \sqrt{3}} \sqrt{1 + \sqrt{3}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((5*x**6+3*x**4+x**2+4)/(x**4+2*x**2+3)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 0.524882, size = 115, normalized size = 0.51 \[ \frac{1}{48} \left (-\frac{50 x \left (x^2-1\right )}{x^4+2 x^2+3}+\frac{\left (95+44 i \sqrt{2}\right ) \tan ^{-1}\left (\frac{x}{\sqrt{1-i \sqrt{2}}}\right )}{\sqrt{1-i \sqrt{2}}}+\frac{\left (95-44 i \sqrt{2}\right ) \tan ^{-1}\left (\frac{x}{\sqrt{1+i \sqrt{2}}}\right )}{\sqrt{1+i \sqrt{2}}}\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(4 + x^2 + 3*x^4 + 5*x^6)/(3 + 2*x^2 + x^4)^2,x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.036, size = 408, normalized size = 1.8 \[{\frac{1}{{x}^{4}+2\,{x}^{2}+3} \left ( -{\frac{25\,{x}^{3}}{24}}+{\frac{25\,x}{24}} \right ) }-{\frac{139\,\ln \left ({x}^{2}+\sqrt{3}+x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}\sqrt{3}}{576}}-{\frac{11\,\ln \left ({x}^{2}+\sqrt{3}+x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}}{48}}+{\frac{ \left ( -278+278\,\sqrt{3} \right ) \sqrt{3}}{288\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x+\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{-22+22\,\sqrt{3}}{24\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x+\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{7\,\sqrt{3}}{72\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x+\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{139\,\ln \left ({x}^{2}+\sqrt{3}-x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}\sqrt{3}}{576}}+{\frac{11\,\ln \left ({x}^{2}+\sqrt{3}-x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}}{48}}+{\frac{ \left ( -278+278\,\sqrt{3} \right ) \sqrt{3}}{288\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x-\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{-22+22\,\sqrt{3}}{24\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x-\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{7\,\sqrt{3}}{72\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x-\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((5*x^6+3*x^4+x^2+4)/(x^4+2*x^2+3)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ -\frac{25 \,{\left (x^{3} - x\right )}}{24 \,{\left (x^{4} + 2 \, x^{2} + 3\right )}} + \frac{1}{24} \, \int \frac{95 \, x^{2} + 7}{x^{4} + 2 \, x^{2} + 3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)/(x^4 + 2*x^2 + 3)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.315086, size = 1038, normalized size = 4.63 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)/(x^4 + 2*x^2 + 3)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.92792, size = 48, normalized size = 0.21 \[ - \frac{25 x^{3} - 25 x}{24 x^{4} + 48 x^{2} + 72} + \operatorname{RootSum}{\left (28311552 t^{4} - 23689216 t^{2} + 18481401, \left ( t \mapsto t \log{\left (\frac{40992768 t^{3}}{19364129} - \frac{48423104 t}{58092387} + x \right )} \right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x**6+3*x**4+x**2+4)/(x**4+2*x**2+3)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{5 \, x^{6} + 3 \, x^{4} + x^{2} + 4}{{\left (x^{4} + 2 \, x^{2} + 3\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)/(x^4 + 2*x^2 + 3)^2,x, algorithm="giac")
[Out]